package com.mall.common.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

import com.mall.common.dao.PaymentLogDao;
import com.mall.common.domain.component.PaymentLogDomain;
import com.mall.common.service.PaymentLogService;

@Repository
public class PaymentLogServiceImpl extends BaseServiceImpl<PaymentLogDomain, Long> implements
		PaymentLogService {
	
	@Resource
	private PaymentLogDao paymentLogDao;
	
	@Resource
	public void setBaseDao(PaymentLogDao paymentLogDao) {
		super.setBaseDao(paymentLogDao);
	}

	@Override
	@Transactional(readOnly=true)
	public boolean isPayReturn(String orderNo, String dealId) {
		return paymentLogDao.isPayReturn(orderNo, dealId);
	}
}